package com.yusiji.sqlSession;

import java.util.List;

/**
 * @author yusiji
 */
public interface SqlSession {

    //查询所有
    public <E> List<E> selectList(String statementId,Object... params) throws  Exception;

    public <T> T selectOne(String statementId,Object... params) throws  Exception;

    public Integer update(String statementId,Object... params) throws Exception;

    public Integer insert(String statementId,Object... params) throws Exception;

    public Integer delete(String statementId,Object... params) throws Exception;

    public <T> T getMapper(Class<?> mapperClass);

}
